package com.cy6;


import com.cy5.BitInClass;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * 2022年8月4日代码
 *
 * @author CY
 * @date 2022/08/04 09:37
 **/
class Hello{
    public static int h;

    public static void main(String[] args) {
        Hello hello = null;
        System.out.println(h);
    }
}
public class Test extends BitInClass{

    static boolean a;

    @Override
    protected List<Integer> selfDividingNumbers(int left, int right) {
        System.out.println("我执行了子类中的方法！");
        List<Integer> list = new ArrayList<Integer>();
        return list;

//        return super.selfDividingNumbers(left, right);
} public  static List<Integer> findDisappearedNumbers(int[] nums) {
        ArrayList<Integer> list = new ArrayList<>();
        Arrays.sort(nums);
        for (int i = 1; i <= nums.length; i++) {
            int pos=Arrays.binarySearch(nums,i);
            if(pos<0){
                list.add(i);
                continue;
            }
        }
      return list;
    }


    public static void main(String[] args) {
        Test test = new Test();
        System.out.println(test.selfDividingNumbers(1, 22));

//        Student student = new Student();
////
//        BitInClass bitInClass = new BitInClass();
        System.out.println(a);
        int arr[]={4,3,2,7,8,2,3,1};
        findDisappearedNumbers(arr);
        System.out.println(Hello.h);






    }

}
